﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/TemplateAdmin.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MvcVehicleInsurance.Models.VehicleInformation>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2 class="ico_mug">Vehicle</h2>

    <table>
        <tr>
            <th></th>
            <th>
                vehicleID
            </th>
            <th>
                vehicleName
            </th>
            <th>
                vehicleisOwnerName
            </th>
            <th>
                vehicleModel
            </th>
            <th>
                vehicleVersion
            </th>
            <th>
                vehicleRate
            </th>
            <th>
                vehicleBodyNumber
            </th>
            <th>
                vehicleEngineNumber
            </th>
            <th>
                vehicleNumber
            </th>
            <th>
                vehicleWarranty
            </th>
            <th>
                ManufacturerId
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Edit", "Edit", new { id=item.vehicleID }) %> |
                <%: Html.ActionLink("Details", "Details", new { id=item.vehicleID })%> |
                <%: Html.ActionLink("Delete", "Delete", new { id=item.vehicleID })%>
            </td>
            <td>
                <%: item.vehicleID %>
            </td>
            <td>
                <%: item.vehicleName %>
            </td>
            <td>
                <%: item.vehicleisOwnerName %>
            </td>
            <td>
                <%: item.vehicleModel %>
            </td>
            <td>
                <%: item.vehicleVersion %>
            </td>
            <td>
                <%: item.vehicleRate %>
            </td>
            <td>
                <%: item.vehicleBodyNumber %>
            </td>
            <td>
                <%: item.vehicleEngineNumber %>
            </td>
            <td>
                <%: item.vehicleNumber %>
            </td>
            <td>
                <%: item.vehicleWarranty %>
            </td>
            <td>
                <%: item.ManufacturerId %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>

</asp:Content>

